package com.lantosec.hmrp.modules.category.entity;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.category.vo.StatisticalVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Statistical extends BaseEntity<StatisticalVO> {

    public Statistical(StatisticalVO vo){
        this.deptId = vo.getDeptId();
        this.deptName = vo.getDeptName();
        this.total = vo.getTotal();
        this.nowPrice = vo.getNowPrice();
        this.price = vo.getPrice();
        this.categoryName = vo.getCategoryName();
        this.categoryId = vo.getCategoryId();
        this.lableType = vo.getLableType();
        this.state = vo.getState();
    }

    @Override
    public StatisticalVO convertToVO() {
        return new StatisticalVO(this);
    }
    //部门ID
    private String deptId;

    //部门名称
    private String deptName;

    //总数
    private String total;

    //资产净值
    private String nowPrice;

    //资产原值
    private String price;

    //分类名称
    private String categoryName;

    //分类ID
    private String categoryId;

    //标签材质
    private String lableType;

    //资产状态
    private String state;
}
